﻿/*****************************************************************//**
 * @file   VAOneXMLAdaptorAcousticsNCTPerforated.h
 * @brief  VAOne读写适配器多层声学包层：多孔介质
 *
 * @author liuzhiyuan(liuzhiyuan@diso.cn)
 * @date   2024-11-05
 *********************************************************************/
#ifndef VAONEXMLADAPTORACOUSTICSNCTPERFORATED_H
#define VAONEXMLADAPTORACOUSTICSNCTPERFORATED_H

#include "FITKVAOneXMLIOAPI.h"
#include "FITKAbstractVAOneXMLAdaptor.h"
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
#include "rapidxml.hpp"
namespace IO
{
    /**
     * @brief   VAOne读写适配器多层声学包层：多孔介质
     * @author  liuzhiyuan(liuzhiyuan@diso.cn)
     * @data    2024-11-05
     */
    class FITKVAOneXMLIOAPI VAOneXMLAdaptorAcousticsNCTPerforated : public FITKAbstractVAOneXMLAdaptor
    {
        FITKCLASS(IO, VAOneXMLAdaptorAcousticsNCTPerforated);
    public:
        /**
         * @brief   构造函数
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @data    2024-11-05
         */
        explicit VAOneXMLAdaptorAcousticsNCTPerforated()= default;
        /**
         * @brief   析构函数
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @data    2024-11-05
         */
        ~VAOneXMLAdaptorAcousticsNCTPerforated() = default;
        /**
         * @brief   适配器读数据
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool adaptR() override;
        /**
         * @brief   适配器写数据
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool adaptW() override;

    private:

        /**
         * @brief   读取多层声包层：多孔介质
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool readNCTPerforated();

        /**
         * @brief   写多层声包层：多孔介质
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool writeNCTPerforated();


    };
    Register2FITKIOAdaptorFactory(VAOneXML, Acoustics::FITKAcousticsNCTPerforated, VAOneXMLAdaptorAcousticsNCTPerforated)
}
#endif // VAONEXMLADAPTORACOUSTICSNCTPERFORATED_H
